#ifndef CONECTIONTHREAD_H
#define CONECTIONTHREAD_H
#include <QThread>
#include <QTcpSocket>
#include <QtSql>
#include "aprsparser.h"
class ConnectionThread: public QThread
 {

    Q_OBJECT

 private:
     //QTcpSocket *connection;

 public:
     ConnectionThread(QString server, int port, QString user, QString password, QString filter);
     QTcpSocket *connection;

     void removeConnection();

 signals:
     void connectionSuccessful();
     void newPacket(APRSParser);

 protected:
     void run();

     public slots:
     void getData();


 };

#endif // CONECTIONTHREAD_H
